package com.rogo.rogobox.models
{
	import com.rogo.rogobox.App;
	import com.sina.microblog.MicroBlog;
	
	/**
	 * 
	 * BlogService类  是 项目工程跟sina微博SDK连接的唯一接口
	 * 
	 * @author rogo
	 */	
	public class BlogDelegate extends MicroBlog
	{
		public function BlogDelegate()
		{
			super();
			init();
		}
		
		//--------------------------------------------------------------------------
		//
		//  Constants
		//
		//--------------------------------------------------------------------------
		
		private static var instance:BlogDelegate;
		
		//--------------------------------------------------------------------------
		//
		//  Methods
		//
		//--------------------------------------------------------------------------
		
		public static function getInstance():BlogDelegate
		{
			if (!instance) 
				instance = new BlogDelegate();
			return instance;
		}
		
		public function init():void
		{
			isTrustDomain = true;
			source = App.APP_KEY;
			consumerKey = App.APP_KEY;
			consumerSecret = App.APP_SECRET;
		}
		
	}
}